package com.shop.front.dao.pink;

import com.shop.jpa.BaseDao;
import com.shop.domain.pink.PinkSnapJishou;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface PinkSnapJishouDao extends BaseDao<PinkSnapJishou, Long> {


    @Modifying(clearAutomatically = true)
    @Query("update PinkSnapJishou set status = ?2,update_time=now() where id = ?1 and status = ?3")
    public int updateJishouStatus(Long id,int status, int lastStatus);
}
